package com.ldpp.controller;

import com.ldpp.backtesting.BackParam;
import com.ldpp.backtesting.BackStrategy;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：gongtan
 * @date ：Created in 2021/3/16 16:32
 * @description：
 * @modified By：
 */
@RestController
@RequestMapping("/back")
@AllArgsConstructor
public class BackTestingController {

    private final BackStrategy backStrategy;

    @PostMapping("")
    public Object test(@RequestBody BackParam backParam){
        //初始化策略持仓 账户资金
        backStrategy.backMain(backParam);
        return null;
    }

}
